Skip to content

Conversation

@nvdaes
Copy link
Collaborator

@nvdaes nvdaes commented Oct 17, 2025

  • Fix language reported as not supported

Link to issue number:

Fixes #18876

Summary of the issue:

NVDA reports as not supported dialects not available in synthesizer languages, even when a fallback language can be switched to.

Description of user facing changes:

When a dialect is not available for the current synthesizer, but NVDA can switch to a fallback language, that dialect won't be reported as not supported.

Description of developer facing changes:

None

Description of development approach:

In the languageIsSupportedfunction of the SynthDriver class, if a language is not supported, search for the availability of a fallback language, defined as mainLanguage-mainLanguage, for example, fr-fr.

Testing strategy:

With the autoLanguageSwitching option enabled, read text, and use a gesture to report the different languages, using this webpage with eSpeak which contain French Kanada, as suggested by @CyrilleB79:

https://codepen.io/nvdaes/pen/WbrXxZL

Also, check that regressions are not introduced, testing with the following webpage:

https://codepen.io/nvdaes/pen/KwKyVpR

Known issues with pull request:

None

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

@nvdaes
Copy link
Collaborator Author

nvdaes commented Oct 19, 2025

@CyrilleB79 , feel free to test this if you want. Otherwise, I'll mark this as ready to review in a few days.

@SaschaCowley SaschaCowley added the conceptApproved Similar 'triaged' for issues, PR accepted in theory, implementation needs review. label Oct 21, 2025
@nvdaes nvdaes marked this pull request as ready for review October 24, 2025 03:08
@nvdaes nvdaes requested a review from a team as a code owner October 24, 2025 03:08
@nvdaes nvdaes requested a review from SaschaCowley October 24, 2025 03:08
@seanbudd seanbudd changed the title fixLanguageReporting Fix language reporting dialects as not supported Nov 3, 2025
@nvdaes nvdaes force-pushed the fixLanguageReporting branch from de950bb to 9002ccd Compare November 3, 2025 17:29
@nvdaes
Copy link
Collaborator Author

nvdaes commented Nov 5, 2025

I'll tested these changes again, and for me it works as expected.

@seanbudd seanbudd merged commit 9b864e1 into nvaccess:master Nov 5, 2025
29 checks passed
@github-actions github-actions bot added this to the 2026.1 milestone Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conceptApproved Similar 'triaged' for issues, PR accepted in theory, implementation needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Language wrongly reported as unsupported

3 participants